package designpattern.observer;

public class Client {
    public static void main(String[] args) {
        ConcreteSubject<String> concreteSubject = new ConcreteSubject<>();
        ConcreteObserver1<String> concreteObserver1 = new ConcreteObserver1<>();
        boolean attach = concreteSubject.attach(concreteObserver1);
        ConcreteObserver2<String> objectConcreteObserver2 = new ConcreteObserver2<>();
        concreteSubject.attach(objectConcreteObserver2);
        //concreteSubject.detach(concreteObserver);
        concreteSubject.notify("hello");
    }
}
